from django.urls import path
from . import views

urlpatterns = [
    # 认证相关
    path('check-user-type/', views.check_user_type_view, name='check_user_type'),
    path('login/', views.login_view, name='login'),
    path('logout/', views.logout_view, name='logout'),
    path('token/refresh/', views.CustomTokenRefreshView.as_view(), name='token_refresh'),
    path('profile/', views.profile_view, name='profile'),
    
    # 机构和实验室
    path('institutions/', views.InstitutionListView.as_view(), name='institutions'),
    path('laboratories/', views.LaboratoryListView.as_view(), name='laboratories'),
]